import request from '@/utils/request.js'

// 获取指定用户的资料
export const getTargetUserInfo = target => {
  return request({
    method: 'GET',
    url: `v1_0/users/${target}`
  })
}

// 获取指定用户的文章列表
export const getTargetUserArticles = params => {
  return request({
    method: 'GET',
    url: `v1_0/users/${params.target}/articles`,
    params
  })
}
